Integrand size = 26, antiderivative size = 80 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx=\frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}-\frac {b f p q \log (g+h x)}{h (f g-e h)} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2442, 36, 31, 2495} \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx=-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}+\frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {b f p q \log (g+h x)}{h (f g-e h)} \]
[In]
[Out]
Rule 31
Rule 36
Rule 2442
Rule 2495
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{(g+h x)^2} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = -\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}+\text {Subst}\left (\frac {(b f p q) \int \frac {1}{(e+f x) (g+h x)} \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = -\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}-\text {Subst}\left (\frac {(b f p q) \int \frac {1}{g+h x} \, dx}{f g-e h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (b f^2 p q\right ) \int \frac {1}{e+f x} \, dx}{h (f g-e h)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}-\frac {b f p q \log (g+h x)}{h (f g-e h)} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.86 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx=\frac {-\frac {a}{g+h x}-\frac {b \log \left (c \left (d (e+f x)^p\right )^q\right )}{g+h x}+\frac {b f p q (\log (e+f x)-\log (g+h x))}{f g-e h}}{h} \]
[In]
[Out]
Time = 1.34 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.74
method | result | size |
parallelrisch | \(-\frac {\ln \left (f x +e \right ) x b \,f^{2} h p q -\ln \left (h x +g \right ) x b \,f^{2} h p q +\ln \left (f x +e \right ) b \,f^{2} g p q -\ln \left (h x +g \right ) b \,f^{2} g p q +\ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right ) b e f h -\ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right ) b \,f^{2} g +a e f h -a \,f^{2} g}{\left (e h -f g \right ) \left (h x +g \right ) f h}\) | \(139\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.41 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx=-\frac {a f g - a e h + {\left (b f g - b e h\right )} q \log \left (d\right ) - {\left (b f h p q x + b e h p q\right )} \log \left (f x + e\right ) + {\left (b f h p q x + b f g p q\right )} \log \left (h x + g\right ) + {\left (b f g - b e h\right )} \log \left (c\right )}{f g^{2} h - e g h^{2} + {\left (f g h^{2} - e h^{3}\right )} x} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 357 vs. \(2 (68) = 136\).
Time = 3.56 (sec) , antiderivative size = 357, normalized size of antiderivative = 4.46 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx=\begin {cases} \frac {a x + \frac {b e \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}}{f} - b p q x + b x \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}}{g^{2}} & \text {for}\: h = 0 \\- \frac {a}{g h + h^{2} x} - \frac {b p q}{g h + h^{2} x} - \frac {b \log {\left (c \left (d \left (\frac {f g}{h} + f x\right )^{p}\right )^{q} \right )}}{g h + h^{2} x} & \text {for}\: e = \frac {f g}{h} \\- \frac {a e h}{e g h^{2} + e h^{3} x - f g^{2} h - f g h^{2} x} + \frac {a f g}{e g h^{2} + e h^{3} x - f g^{2} h - f g h^{2} x} - \frac {b e h \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}}{e g h^{2} + e h^{3} x - f g^{2} h - f g h^{2} x} + \frac {b f g p q \log {\left (\frac {g}{h} + x \right )}}{e g h^{2} + e h^{3} x - f g^{2} h - f g h^{2} x} + \frac {b f h p q x \log {\left (\frac {g}{h} + x \right )}}{e g h^{2} + e h^{3} x - f g^{2} h - f g h^{2} x} - \frac {b f h x \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}}{e g h^{2} + e h^{3} x - f g^{2} h - f g h^{2} x} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.12 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx=b f p q {\left (\frac {\log \left (f x + e\right )}{f g h - e h^{2}} - \frac {\log \left (h x + g\right )}{f g h - e h^{2}}\right )} - \frac {b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right )}{h^{2} x + g h} - \frac {a}{h^{2} x + g h} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.20 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx=\frac {b f p q \log \left (f x + e\right )}{f g h - e h^{2}} - \frac {b f p q \log \left (h x + g\right )}{f g h - e h^{2}} - \frac {b p q \log \left (f x + e\right )}{h^{2} x + g h} - \frac {b q \log \left (d\right ) + b \log \left (c\right ) + a}{h^{2} x + g h} \]
[In]
[Out]
Time = 3.32 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.11 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx=-\frac {a}{x\,h^2+g\,h}-\frac {b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )}{h\,\left (g+h\,x\right )}+\frac {b\,f\,p\,q\,\mathrm {atan}\left (\frac {f\,g\,2{}\mathrm {i}+f\,h\,x\,2{}\mathrm {i}}{e\,h-f\,g}+1{}\mathrm {i}\right )\,2{}\mathrm {i}}{h\,\left (e\,h-f\,g\right )} \]
[In]
[Out]